import Vue from 'vue'
import axios from 'axios';
import $ajax from '../assets/js/axios';
axios.interceptors.request.use(function(config) {
  let token = sessionStorage.getItem('Bearer');
  if (token) {
    config.headers['authorization'] = 'Bearer ' + token;
  }
  return config;
})
Vue.use($ajax);